import pandas as pd

data = {
    "姓名": ["小徐", "小夏", "小消", "小溪"],
    "性别": ["男", "女", "男", "女"],
    "年龄": [10, 20, 30, 40]
}

df = pd.DataFrame(data)
df.set_index("姓名", inplace=True)

print(df)
